package com.ld.security.server.admin.modules.ge.entity;

import com.ld.security.common.core.anno.IdKey;
import com.ld.security.common.mybatis.anno.LabelKeys;
import com.ld.security.common.mybatis.base.entity.*;

import com.baomidou.mybatisplus.annotation.TableName;


import com.ld.security.auth.common.sys.entity.SysUserEntity;
import com.ld.security.server.admin.modules.ge.constant.GeProjectUserRelConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ld.security.common.mybatis.anno.SqlKey;
import com.ld.security.common.core.base.column.*;
import com.ld.security.common.mybatis.constant.SqlCondition;

@TableName("ge_project_user_rel")
@ApiModel("工程用户关联")
@Data
public class GeProjectUserRelEntity  extends SuperEntity implements LabelMap
{

  @LabelKeys(value = SysUserEntity.class)
  @ApiModelProperty("用户编号")
  @SqlKey(SqlCondition.eq)
    private String userId;




@LabelKeys(value = GeProjectEntity.class)
  @ApiModelProperty("工程编号")
  @SqlKey(SqlCondition.eq)
    private String projectId;

  @LabelKeys
  @ApiModelProperty("状态")
  @SqlKey(SqlCondition.eq)
  private GeProjectUserRelConstant.status status;



  private MapJson labelMap;

  @IdKey({"userId","projectId"})
  @Override
  public String getId() {
    return super.getId();
  }
}
